package cn.school.controller.monitor;

import cn.school.classManage.vo.SchoolClassVO;
import cn.school.common.api.CommonPage;
import cn.school.common.api.CommonResult;
import cn.school.monitor.entity.ClassAppsInstalledDo;
import cn.school.monitor.service.AppsInstalledService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: AppsInstallController
 * @author: Alex
 * @date: 2023/3/30
 **/
@RestController
@Api(tags = "Monitor-appsInstall => app安装情况")
@RequestMapping("/monitor/appsinstall")
public class AppsInstallController {
	
	@Autowired
	private AppsInstalledService appsInstalledService;
	
	@ApiOperation("findClassAppsInstallList => 查询班级安装app情况")
	@PostMapping(value = "/findClassAppsInstallList")
	public CommonResult<CommonPage<ClassAppsInstalledDo>> findClassAppsInstallPageList(@RequestBody SchoolClassVO vo) {
		CommonPage<ClassAppsInstalledDo> installList = appsInstalledService.findClassAppsInstallList(vo);
		return CommonResult.success(installList);
	}
}
